package com.quanyan.user.mapper;

import com.quanyan.user.model.db.TbUserExt;
import org.apache.ibatis.annotations.Param;

/**
 * Created by yue.yuan on 2016/7/11.
 */
public interface UserExtMapper {

    /**
     * 根据百灵鸟号查询用户id
     *
     * @param larkCode
     * @return
     */
    Integer selectUserIdByLarkCode(String larkCode);

    /**
     * 更新实名用户状态
     *
     * @param uid
     * @param status
     */
    void updateNameVerifyStatus(@Param("uid") Integer uid, @Param("status") Byte status);

    /**
     * @param uid 用户ID
     * @return
     */
    TbUserExt queryUserExtByUid(Integer uid);

    /**
     * 插入用户拓展信息
     * @param userExt
     * @return
     */
    int insertUserExt(TbUserExt userExt);
}
